package com.funtl.apache.dubbo.log.dao;

import com.funtl.apache.dubbo.provider.log.api.domain.TbOrderLog;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Options;
import org.springframework.stereotype.Repository;

@Mapper
@Repository
public interface OrderLogDao {

    @Insert("INSERT INTO tb_order_log (order_id, order_item_id, gmt_create, gmt_modified) VALUES(#{orderId}, #{orderItemId}, #{gmtCreate}, #{gmtModified})")
    @Options(useGeneratedKeys = true, keyColumn = "id", keyProperty = "id")
    int insert(TbOrderLog tbOrderLog);
}
